package Access;

import Entities.User;
import ExtEntities.VeryExtUser;
import java.util.LinkedList;
import javax.ejb.Remote;

/**
 *
 * @author 647_2
 */
@Remote
public interface UsersRemote {
    public LinkedList<User> getAllUsers();
    public LinkedList<User> getAllUsers(int start, int count);

    public LinkedList<User> getUsersByUserGroup(int ID, int start, int count);

    public User getUser(int ID);
    public VeryExtUser getFullUser(int ID);

    public boolean AddUser(String login, String mail, String pass);
    public boolean UpdateUser(int ID, String login, String mail, String pass);
    public boolean DeleteUser(int ID);

    public boolean AddUserToGroup(int ID, int ugID);
    public boolean DeleteUserOfGroup(int ID, int ugID);
}
